﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

/*
* University of Reykjavík
* Brjóstagjöf.is is the product of first-year practical programming course
* for computer science students at said university
*
* URL: http://code.google.com/p/scags
* Authors: 
* Ástvaldur Sigurðsson
* Guðjón Jónsson
* Kristín Inga Vigfúsdóttir
* Steinar Bragi Sigurðsson
* Sveinn Ernstsson
*/

namespace skags.Controllers
{
    public class ErrorController : Controller
    {
        //
        // GET: /Error/ - skilar okkur Error view ef eitthvað tiltekið kemur upp á
        public ActionResult Index()
        {
            return View("Error");
        }

        // GET: /NotFound/ - skilar okkur NotFound view ef faersla finnst ekki
        public ActionResult NotFound(string aspxerrorpath)
        {
            ViewData["error_path"] = aspxerrorpath;

            return View("NotFound");
        }

    }
}